<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MY_Controller
 *
 */
class MY_Controller extends CI_Controller {


    function __construct() {
        parent::__construct();

        // Load helper Template
        $this->load->helper('template');
    }

    public function is_login(){
        $is_logged_in = $this->session->userdata('is_logged_in');
        if(isset($is_logged_in) && ($is_logged_in == true)){
            return true;
        }
        return false;
    }
    public function is_register(){
        $is_register = $this->session->userdata('is_register');
        if(isset($is_register) && ($is_register == true))
        {
            return true;
        }
        return false;
    }
}
?>
